package com.ruoyi.amuse.PostBarManger.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 学校动态管理对象 campus_circle
 * 
 * @author juwujie
 * @date 2024-07-26
 */
public class PostBarManger extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 帖子唯一id */
    @Excel(name = "帖子唯一id")
    private Long postId;

    /** 发布账号 */
    @Excel(name = "发布账号")
    private Long userAccount;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 帖子类别 */
    @Excel(name = "帖子类别")
    private String postType;

    /** 帖子标题 */
    @Excel(name = "帖子标题")
    private String postTitle;

    /** 发布内容 */
    @Excel(name = "发布内容")
    private String content;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String photo;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishDate;

    /** 帖子热度 */
    @Excel(name = "帖子热度")
    private Long hot;

    /** 删除状态（0存在 2删除） */
    @Excel(name = "删除状态", readConverterExp = "0=存在,2=删除")
    private String delFlag;

    /*
    * 点赞和评论计数
    * */
    private Long likesCount;
    private Long commentsCount;

    public Long getLikesCount() {
        return likesCount;
    }

    public void setLikesCount(Long likesCount) {
        this.likesCount = likesCount;
    }

    public Long getCommentsCount() {
        return commentsCount;
    }

    public void setCommentsCount(Long commentsCount) {
        this.commentsCount = commentsCount;
    }

    public void setPostId(Long postId)
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setUserAccount(Long userAccount) 
    {
        this.userAccount = userAccount;
    }

    public Long getUserAccount() 
    {
        return userAccount;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setPostType(String postType) 
    {
        this.postType = postType;
    }

    public String getPostType() 
    {
        return postType;
    }
    public void setPostTitle(String postTitle) 
    {
        this.postTitle = postTitle;
    }

    public String getPostTitle() 
    {
        return postTitle;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setPublishDate(Date publishDate) 
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() 
    {
        return publishDate;
    }
    public void setHot(Long hot) 
    {
        this.hot = hot;
    }

    public Long getHot() 
    {
        return hot;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("postId", getPostId())
            .append("userAccount", getUserAccount())
            .append("nickName", getNickName())
            .append("postType", getPostType())
            .append("postTitle", getPostTitle())
            .append("content", getContent())
            .append("photo", getPhoto())
            .append("publishDate", getPublishDate())
            .append("hot", getHot())
            .append("delFlag", getDelFlag())
                .append("likesCount", getLikesCount())
                .append("commentsCount", getCommentsCount())
            .toString();
    }
}
